<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<?php include_http_metas() ?>
	<?php include_metas() ?>
	<?php include_title() ?>
	<link rel="shortcut icon" href="/favicon.ico" />
	<?php include_stylesheets() ?>
	<?php include_javascripts() ?>
</head>

<body>
	<ul class="menu">
		<li><a href="<?php echo url_for('projet/index') ?>">Projets</a></li>
		<?php $prj_id = $sf_user->getAttribute('prj_id', -1); ?>
		<?php if ($prj_id > -1): ?>
		<li><a href="<?php echo url_for('projet/show?prj_id='.$prj_id) ?>">Tableau de bord</a></li>
		<li><a href="<?php echo url_for('calendrier/index') ?>">Calendrier</a></li>
		<li><a href="<?php echo url_for('planning/index') ?>">Planning</a></li>
<!--		<li><a href="<?php echo url_for('activite/index') ?>">Activités</a></li> -->
		<li><a href="<?php echo url_for('tache/index') ?>">Tâches</a></li>
		<li><a href="<?php echo url_for('evenement/index_cat') ?>">Evénements</a></li>
		<li><a href="<?php echo url_for('note/index') ?>">Notes</a></li>
		<li><a href="<?php echo url_for('categorie/index') ?>">Admin</a></li>
		<?php endif; ?>
	</ul>
	
	<!-- slot sous-menu -->
	
	<hr/>

	<div class="projet">
		<?php 
			if ($sf_user->isAuthenticated()) {
				$username = ($sf_user->getGuardUser()->getName() ? $sf_user->getGuardUser()->getName() : $sf_user->getUsername());
				echo $username .' - '. $sf_user->getAttribute('projet', '') .' - '. link_to('déconnexion', 'sfGuardAuth/signout');
			}
		?>
	</div>

    <?php echo $sf_content ?>
  </body>
</html>
